﻿Imports System.Net
Imports System.Web.Http
Imports Models.Notifications

Namespace Controllers

    Public Class NotificationController
        Inherits ApiController

        ''' <summary>
        ''' Get Notifications for current user
        ''' </summary>
        ''' <returns>NotificationVO</returns>
        ''' <remarks></remarks>
        <AcceptVerbs("GET")> _
        Public Function GetNotifications() As NotificationVO
            Try
                Dim oService As New Services.Notifications(Request)
                Return oService.GetNotifications()
            Catch ex As Exception
                apiHelpers.ManageException(ex)
                Return Nothing
            End Try
        End Function

    End Class

End Namespace